home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cocktail / reuse.lha / reuse / c / Idents.h < prev    next >
C/C++ Source or Header  |  1992-08-18  |  2KB  |  80 lines

  1. # ifndef yyIdents
  2. # define yyIdents
  3.  
  4. /* $Id: Idents.h,v 1.8 1992/08/07 14:36:51 grosch rel $ */
  5.  
  6. /* $Log: Idents.h,v $
  7.  * Revision 1.8  1992/08/07  14:36:51  grosch
  8.  * added comments
  9.  *
  10.  * Revision 1.7  1992/02/18  12:52:30  grosch
  11.  * changed tString from unsigned char * to char *
  12.  *
  13.  * Revision 1.6  1991/11/21  14:28:16  grosch
  14.  * new version of RCS on SPARC
  15.  *
  16.  * Revision 1.5  91/09/18  15:18:47  grosch
  17.  * added procedure GetStringRef
  18.  * 
  19.  * Revision 1.4  91/07/17  17:23:08  grosch
  20.  * introduced ARGS trick for ANSI compatibility
  21.  * 
  22.  * Revision 1.3  91/01/21  12:13:21  grosch
  23.  * some performance improvements
  24.  * 
  25.  * Revision 1.2  90/07/04  14:33:56  grosch
  26.  * introduced conditional include
  27.  * 
  28.  * Revision 1.1  89/12/08  17:22:12  grosch
  29.  * added variable NoIdent
  30.  * 
  31.  * Revision 1.0  88/10/04  11:44:39  grosch
  32.  * Initial revision
  33.  * 
  34.  */
  35.  
  36. /* Ich, Doktor Josef Grosch, Informatiker, Sept. 1987 */
  37.  
  38. # include <stdio.h>
  39. # include "ratc.h"
  40. # include "StringMem.h"
  41.  
  42. # ifdef __STDC__
  43. # define ARGS(parameters)    parameters
  44. # else
  45. # define ARGS(parameters)    ()
  46. # endif
  47.  
  48. typedef cardinal    tIdent;
  49.  
  50. extern    tIdent    NoIdent; /* A default identifer (empty string)        */
  51.  
  52. extern    tIdent    MakeIdent    ARGS((register char * string, register cardinal length));
  53.             /* The string (of length) is mapped to a unique    */
  54.             /* identifier (an integer) which is returned.    */
  55.  
  56. extern    void    GetString    ARGS((tIdent ident, char * string));
  57.             /* Returns the string whose identifier is 'ident'.*/
  58.  
  59. extern    tStringRef GetStringRef ARGS((tIdent ident));
  60.             /* Returns a reference to the string identified    */
  61.             /* by 'ident'.                    */
  62.  
  63. extern    tIdent    MaxIdent    ();
  64.             /* Returns the currently maximal identifier.    */
  65.  
  66. extern    void    WriteIdent    ARGS((FILE * file, tIdent ident));
  67.             /* The string encoded by the identifier 'ident'    */
  68.             /* is printed on the file.            */
  69.  
  70. extern    void    WriteIdents    ();
  71.             /* The contents of the identifier table is    */
  72.             /* printed on the standard output.        */
  73.  
  74. extern    void    InitIdents    ();
  75.             /* The identifier table is initialized.        */
  76.  
  77. extern    void    WriteHashTable    ();
  78.  
  79. # endif
  80.